import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App'
// import 'antd/dist/antd.css'
import './index.css'
import './css/var.css'

import '@/assets/style/global.scss'
import './i18n/config'
import './css/base.css'
import { BrowserRouter } from 'react-router-dom'
// 通过 provider 提供数据
import { Provider } from 'react-redux'
// import store from '@/store'
import store from './store/toolkit/ListStore.js'

ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
  // Provider 给所有组件提供 store 里的数据
  <Provider store={store}>
    <React.StrictMode>
      <BrowserRouter>
        <App />
      </BrowserRouter>
    </React.StrictMode>
  </Provider>,
)
